<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- <link rel="stylesheet" href="custom-layer.css"> -->
    <link rel="stylesheet" type="text/css" href="my-layer.css" />
    <style>
        .btn{
            border: solid 1px #eee;
            background: #eee;
            padding: 5px 20px;
            cursor: pointer;
            outline:none;
        }
        .btn:hover{
            background:#ddd;
        }
    </style>
</head>
<body>
    <div>
        <div class="condition">
            <p><span>标题：</span><input type="text" id="title" /></p>
            <p><span>内容：</span><input type="text" id="content" /></p>
            <p><span>点击遮罩层是否关闭弹出层：</span><input type="checkbox" id="shade-close" /></p>
            <p><span>弹出层持续时间：</span><input type="text" id="time"></p>
            <p><span>宽：</span><input type="text" id="layer-width"></p>
            <p><span>高：</span><input type="text" id="layer-height"></p>
        </div>
        <button id="alert_btn" class="btn">弹出</button>
    </div>
    <script src="jquery-1.9.1.js"></script>
    <script src="my-layer.js"></script>
    <script>
        $("#alert_btn").on('click',function(){
            layer.open({
                title:'标题',
                content:"this is the content",
                shadeClose: false,
                end:function(){
                    //console.log('end');
                }
            });
        });
    </script>
</body>
</html>